@model University.Models.Department

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Department</legend>

    <div class="display-label">NameRomanian</div>
    <div class="display-field">@Model.NameRomanian</div>

    <div class="display-label">NameRussian</div>
    <div class="display-field">@Model.NameRussian</div>

    <div class="display-label">NameOther</div>
    <div class="display-field">@Model.NameOther</div>

    <div class="display-label">YearFounded</div>
    <div class="display-field">@String.Format("{0:g}", Model.YearFounded)</div>

    <div class="display-label">SeniorProfessor</div>
    <div class="display-field">@(Model.SeniorProfessor == null ? "None" : Model.SeniorProfessor.LastName)</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Faculty</div>
    <div class="display-field">@(Model.Faculty == null ? "None" : Model.Faculty.Name)</div>

    <div class="display-label">Domains</div>
    <div class="display-field">@(Model.Domains == null ? "None" : Model.Domains.Count.ToString())</div>

    <div class="display-label">Documents</div>
    <div class="display-field">@(Model.Documents == null ? "None" : Model.Documents.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


